package tij4.concurrent.exercise.ex10;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

public class P10Mainp01 {

    public static void main(String[] args) {
        Practice01 practice01 = new Practice01();
        Future<Integer> integerFuture = practice01.runTask(3);
        try {
            System.out.println(integerFuture.get());
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (ExecutionException e) {
            e.printStackTrace();
        }
    }


}
